﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd"> 《{{ guild.name }}》统计数据({{ begin_time }} ~ {{ end_time }}) </div>
        <div class="weui-panel__bd">
            {% for user in users %}
            <a href="{% url 'gma:caster_detail' user.uid %}" class="weui-media-box weui-media-box_appmsg weui-cell_access">
                <div class="weui-media-box__hd">
                    <img class="weui-media-box__thumb avatar" src="{{ user.avatar|cdn }}" alt="">
                </div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">{{ user.nickname }}({{ user.uid }})</h4>
                    <p class="weui-media-box__desc">{{ user.total_income }} <i class="fa fa-ticket-alt"></i> </p>
                </div>

                <div class="weui-cell__ft">
                    <p class="weui-media-box__desc">在线 {{ user.total_online_seconds|readable_seconds }}  </p>
                    <p class="weui-media-box__desc">通话 {{ user.total_call_seconds|readable_seconds }} </p>
                </div>
            </a>
            {% endfor %}

            <div class="weui-media-box weui-media-box_text">
                <ul class="weui-media-box__info">
                    <li class="weui-media-box__info__meta"> 共有 {{ users|length }} 名成员 </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}

{% endblock extra_js %}